package ru.ssau.customerManagement.controller.remoting;

import java.io.Serializable;

/**
 * Created by illabefat on 22.11.14.
 */
public class OperationResponse implements Serializable {
    private static final long serialVersionUID = 5233679522041115343L;

    private final Object object;
    private final Exception exception;

    public OperationResponse(Object object) {
        this.object = object;
        this.exception = null;
    }

    public OperationResponse(Object object, Exception exception) {
        this.object = object;
        this.exception = exception;
    }

    public Object getObject() {
        return object;
    }

    public Exception getException() {
        return exception;
    }
}
